package com.stcc.customer.impl.demo;


import com.stcc.customer.bo.demo.DemoRsqBO;
import com.stcc.customer.dao.demoDao.DemoDao;
import com.stcc.customer.service.demo.DemoService;
import com.stcc.customer.vo.DemoVO;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 描述:DemoServiceImpl
 * 项目名:stcc_gl-parent
 * 包名:com.stcc.customer.impl.demoImpl
 * 作者:stcc
 * 创建时间:2021/4/16 14:35
 * 版本:1.0
 */
@Component
@DubboService
public class DemoServiceImpl implements DemoService {
    @Autowired
   private DemoDao demoDao;

    @Override
    public DemoRsqBO getDemo() {
        DemoRsqBO rsqBO = new DemoRsqBO();
        DemoVO vo = demoDao.findDemoInfo();
        BeanUtils.copyProperties(vo,rsqBO);
        return rsqBO;
    }
}
